"""
Bootstrap script for Flask-Migrate initialization.
This creates the Flask application context needed for migrations.
"""
import os
import sys

# Add parent directory to path
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))

from app import create_app

# Create application
app = create_app()

if __name__ == '__main__':
    with app.app_context():
        print("Application context created successfully")
        print(f"Database URI: {app.config['SQLALCHEMY_DATABASE_URI']}")
